package remoteinfo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import storage.record.Schema;

public class MetaInfo implements Serializable{
	
	private static final long serialVersionUID = 1L;
	public String tblname;
	public Map<String, Integer> info = new HashMap<String,Integer>();
	
	public MetaInfo(String tblname,Schema sch){
		this.tblname = tblname;
		for(String fldname:sch.fields()){
			info.put(fldname, (Integer)sch.type(fldname));
		}
	}
	
	public String toString(){
		return tblname + info.toString();
	}
}
